package com.whp.yky.yky.dao;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.whp.yky.yky.entity.poentity.Document;
import com.whp.yky.yky.entity.poentity.User;
import com.whp.yky.yky.entity.voentity.VoUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DocumentMapper {

    public int insertDocumentInfo(Document document);
    public int updateDocumentInfo(Document document);
    public List<Document> getDocumentInfo(IPage<Document>page , @Param("document") Document document);
    public int deleteDocumentInfo (int id);
    public Document getDocumentInfoById(int id);
    int fakeDeleteDocumentInfo (int id);

    List<Document> getReduceDocumentInfo(IPage<Document> page, @Param("document") Document document);

    int reduceDeleteDocumentInfo(int id);

    List<Document> getDocumentList();
}
